package com.chinacoal.microservice.impl.client.fallback;

import com.chinacoal.microservice.impl.client.CCIPTaskClient;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: YunTao.Li
 * @create: 2020-06-07 11:50
 * @description:
 **/
@Component
public class CCIPTaskClientFallback implements CCIPTaskClient {
    @Override
    public Map<String, Object> getTaskInfo(String bizCode, String bizID) {
        System.out.println("call hr-attendance getTaskInfo local error");
        return null;
    }

    @Override
    public Map<String, Object> leaveApprove(String leaveId, Object record) {
        System.out.println("call hr-attendance leaveApprove local error");
        return null;
    }

    @Override
    public Map<String, Object> appealApprove(String explainId, Object record) {
        System.out.println("call hr-attendance appealApprove local error");
        return null;
    }

    @Override
    public Map<String, Object> travelApprove(String travelId, Object record) {
        System.out.println("call hr-attendance travelApprove local error");
        return null;
    }

    @Override
    public Map<String, Object> leaveApproveDisagree(String leaveId, Object record) {
        System.out.println("call hr-attendance leaveApproveDisagree local error");
        return null;
    }

    @Override
    public Map<String, Object> appealApproveDisagree(String explainId, Object record) {
        System.out.println("call hr-attendance appealApproveDisagree local error");
        return null;
    }

    @Override
    public Map<String, Object> travelApproveDisagree(String travelId, Object record) {
        System.out.println("call hr-attendance travelApproveDisagree local error");
        return null;
    }
}
